<br /><br />
<script>
	var js_url="<?php echo $base_url?>";
	var js_pagetitle="<?php echo $page_title?>";	
</script>
<script type="text/javascript" src="<?php echo $base_url;?>style/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="<?php echo $base_url;?>style/js/BE/admin_news.js"></script>
<form name="trueform2" id="trueform2" method="POST" action="<?php echo $base_url;?>admin_news/add" enctype="multipart/form-data" onSubmit="return submitPost_jQuery();">
<input type="hidden" name="isPost" value="1">

<table width="80%" border="0" cellspacing="1" cellpadding="0" align="center" style="margin:auto; background-color:#3D84CC;">
  <tr>
    <td colspan="2" align="left" bgcolor="#3D84CC" class="title3">&nbsp;Thêm mới <?php echo $page_title;?></td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2"><span class="star">*</span>&nbsp;Danh mục tin:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
	  	<select name="cbo_news_cate" id="cbo_news_cate">
      	<option value="">-- Chọn --</option>
        <?php foreach($aNewsCate as $key=>$item): ?>
      	<option value="<?php echo $item->cate_id; ?>"><?php echo $item->cate_name; ?></option>
				<?php
            $i++;
          endforeach; 
        ?>          
      </select>    
    </td>
  </tr>   
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2"><span class="star">*</span>&nbsp;Tiêu đề:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
		<input type="text" name="txt_title" id="txt_title" class="text2" style="width:650px;" value="" />     
    </td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2">&nbsp;&nbsp;&nbsp;Chọn hình:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
				<input type="file" class="txt_FileUpload" name="image1" id="image1" />
    </td>
  </tr>  
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2">&nbsp;&nbsp;&nbsp;Chọn file:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
				<input type="file" class="txt_FileUpload" name="file1" id="file1" />&nbsp;(chỉ dùng cho VBPQ)
    </td>
  </tr>   
  <tr id="tr_noi_dung_chi_tiet">
    <td align="right" bgcolor="#FFFFFF" class="title2"><span class="star">*</span>&nbsp;Nội dung tin
           <br />&nbsp;&nbsp;&nbsp;<span class="note">(ngắn)</span>:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
		<textarea cols="10" id="txt_short_desc" name="txt_short_desc" rows="2" style="width:650px;"></textarea>
    </td>
  </tr>     
  <tr id="tr_noi_dung_chi_tiet">
    <td align="right" bgcolor="#FFFFFF" class="title2"><span class="star">*</span>&nbsp;Nội dung tin 
       <br />&nbsp;&nbsp;&nbsp;<span class="note">(đầy đủ)</span>:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
		<textarea class="ckeditor" cols="10" id="txt_content" name="txt_content" rows="2"></textarea>
    </td>
  </tr>    
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2">&nbsp;Tags:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
		<input type="text" name="txt_tag" class="text2" id="txt_tag" style="width:650px;" value=""/>     
    </td>
  </tr>  
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2"><span class="star">*</span>&nbsp;Ngày
    <br />&nbsp;&nbsp;&nbsp;<span class="note">(show cùng tin)</span>
    </td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
		<input type="text" name="txt_display_date" class="text2" id="txt_display_date" style="width:150px;" value="<?php echo date("Y-m-d H:i:s");?>" maxlength="20" />     
    </td>
  </tr>  
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2">&nbsp;Tin nổi bật
    <br />&nbsp;&nbsp;&nbsp;<span class="note">(show trang chủ)</span>
    </td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
		<input type="checkbox" name="txt_is_hot" class="text2" id="txt_is_hot" />     
    </td>
  </tr>   
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2"><span class="star">*</span>&nbsp;Trạng thái:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
	  	<select name="cbo_Status" id="cbo_Status">
      	<option value="">-- Chọn --</option>
      	<option value="1">Hiển thị</option>
        <option value="0" selected="selected">Không hiển thị</option>
      </select>    
    </td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2">&nbsp;Nguồn:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
      <input type="text" name="txt_source" id="txt_source" style="padding: 5px;" />
    </td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF" class="title2" nowrap='nowrap'>&nbsp;Đăng lên Facebook?:</td>
    <td align="left" bgcolor="#FFFFFF" class="title2">
        <input type="checkbox" name="chk_facebook" id="chk_facebook" style="padding: 5px;" />
    </td>
  </tr>  
  <tr>
    <td colspan="2" style="text-align:center;" bgcolor="#FFFFFF" height="30px">
		<input type="submit" name="btn_Save" id="btn_Save" value="Lưu" style="width:70px;" class="button" />&nbsp;
		<input type="button" name="btn_GoBack" id="btn_GoBack" value="Quay lại" style="width:70px;" class="button" onclick="history.go(-1); return false;" />
	</td>
  </tr>
</table>
</form>